package sphere.modele;

public class Sphere {
	private double rayon;
	
	public Sphere (double rayon){
		this.rayon = rayon;
	}
	
	public Sphere (){}

	public double getRayon() {
		return rayon;
	}

	public void setRayon(double rayon) {
		this.rayon = rayon;
	}
	
	public double calculerSurface (){
		return 4 * Math.PI * Math.pow(this.rayon, 2);
	}
	
	public double calculerVolume(){
		return 4/3 * Math.PI * Math.pow(this.rayon, 3);
	}
}
